<template>
  <div style="color: red">new的执行</div>
  <br />
</template>

<script setup lang="ts" name="Hoisting">
function Person(name, age) {
  this.name = name;
  this.age = age;
}

const p =new Person('Quina',25)
console.log(p);
console.log(p.__proto__==Person.prototype);
</script>

<style scoped lang="scss"></style>
